/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package compilador.datos;

import java.util.ArrayList;

/**
 *
 * @author Iñaki Goffard
 */
public class CampoReg {

    private String id;

    private ExprTipos tipo;

    private boolean error;

    private ArrayList pend;

    private int desp;


    public CampoReg (String id, ExprTipos tipo){
        this.id = id;
        this.tipo = tipo;
        this.error = false;
    }

    public String getID (){
        return this.id;
    }

    public ExprTipos getTipo (){
        return this.tipo;
    }

    public void setError (boolean error){
        this.error = error;
    }

    public boolean getError (){
        return this.error;
    }

    public ArrayList getPend(){
        return this.pend;
    }

    public void setPend(ArrayList pend){
        this.pend = pend;
    }

    public int getDesp(){
        return this.desp;
    }

    public void setDesp(int desp){
        this.desp = desp;
    }

}
